package com.library.service.implementation.book;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.library.entities.Book;
import com.library.repository.book.BookRepository;
import com.library.service.book.BookService;

@Service("bookService")
public class BookServiceImpl implements BookService {

	@Autowired
    private BookRepository bookRepository;
	
	public List<Book> findAll() {

		return bookRepository.findAll();
		
	}

}
